<template>
  <view class="content">
    <view class="content-h">
      <!-- <image src="goods.prizeAvatar" mode=""></image> -->
      <image src="https://small.qaqavr.com/img/zhongrui/bg.png" mode=""></image>
    </view>
  <!-- 积分记录 -->
  <uni-table stripe >
     <uni-tr>
       <uni-th align="center">变更事项</uni-th>
       <uni-th align="center" >变更日期</uni-th>
       <uni-th align="center">变更数量</uni-th>
     </uni-tr>
     <uni-tr v-for="(item,index) in list" :key="index">
       <uni-td align="center">{{item.changeWhy}}</uni-td>
       <uni-td align="center">{{item.createTime.substring(0, 10)}}</uni-td>
       <uni-td align="center">{{item.changeNum}}</uni-td>
     </uni-tr>
   </uni-table>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        jifenData:{
          	openId: uni.getStorageSync('openid'),
          	pageIndex: 1,
          	pageSize: 20
        },
        list:[]
      };
    },
    onLoad() {
      this.getjifen()
    },
        onReachBottom (){
          this.jifenData.pageSize = Number( this.jifenData.pageSize) + 5
          this.getjifen()
        },
    methods:{
    async  getjifen(){
        const { data } = await uni.$http.post('/integral/findIntegralPage' , this.jifenData)
        console.log('sjsjs' , data)
        if(data.statusCode !== 200 ) {
          return  uni.$u.toast('获取失败')
        }else{
           // uni.$u.toast('获取成功')
         this.list = data.data.data
        }
      }
    }
  }
</script>

<style lang="scss" scoped>
.content {
  width: 100%;
  height: 100%;
  background-color: #f7f7ff7;
  position: relative;
  .content-h {
    height: 300rpx;
    background-color: #f7f7ff7;
    image {
      width: 100%;
      height: 100%;
    }
  }
  /deep/.uni-table-scroll{
    position: absolute;
    top: 50rpx;
    box-sizing: border-box;
    padding: 0 30rpx;
  }
  /deep/.uni-table-th {
    font-size: 24rpx !important;
    padding: 20rpx 5rpx !important;
  }
  .content-header {
    height: 70rpx;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10rpx;
    border-bottom: 2rpx solid #ccc;
    text{
      font-size: 26rpx;
      color: #7f7f94;
    }
  }
  .content-body{
    height: 70rpx;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10rpx;
    border-bottom: 2rpx solid #ccc;
    text{
      font-size: 24rpx;
      color: #000000;
    }
  }
}
</style>
